package com.shiyi.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author shiyi
 * @since 2020-12-08
 */
@TableName("operation_log")
public class OperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 操作人名称
     */
    @TableField("user_name")
    private String userName;

    /**
     * 操作人姓名
     */
    @TableField("real_name")
    private String realName;

    /**
     * ip地址
     */
    @TableField("ip")
    private String ip;

    /**
     * 操作设备类型
     */
    @TableField("brower")
    private String brower;

    /**
     * 操作类型（0新增，2修改，3删除，4登录，5退出登录）
     */
    @TableField("type")
    private Integer type;

    /**
     * 模块
     */
    @TableField("module")
    private String module;

    /**
     * 操作内容
     */
    @TableField("operation_content")
    private String operationContent;

    /**
     * 操作时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 备注
     */
    @TableField("note")
    private String note;

    public OperationLog(String userName, String realName, String ip, String brower, Integer type, String module, String operationContent, Date createTime, String note) {
        this.userName = userName;
        this.realName = realName;
        this.ip = ip;
        this.brower = brower;
        this.type = type;
        this.module = module;
        this.operationContent = operationContent;
        this.createTime = createTime;
        this.note = note;
    }

    public OperationLog() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getBrower() {
        return brower;
    }

    public void setBrower(String brower) {
        this.brower = brower;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getOperationContent() {
        return operationContent;
    }

    public void setOperationContent(String operationContent) {
        this.operationContent = operationContent;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "OperationLog{" +
        "id=" + id +
        ", userName=" + userName +
        ", realName=" + realName +
        ", ip=" + ip +
        ", brower=" + brower +
        ", type=" + type +
        ", module=" + module +
        ", operationContent=" + operationContent +
        ", createTime=" + createTime +
        ", note=" + note +
        "}";
    }
}
